package net.wicp.tams.commons.binlog.event;

import net.wicp.tams.commons.Result;
import net.wicp.tams.commons.apiext.ByteUtil;
import net.wicp.tams.commons.binlog.bean.EventBean;

public class XidEvent extends AbsEvent {
	private long xid;

	public XidEvent(EventBean event) {
		super(event);
	}

	@Override
	public Result parseBody() {
		rowlog();
		xid = ByteUtil.readLongL(readSubByte(8));
		return null;
	}

	public long getXid() {
		return xid;
	}

}
